<?php
/**
 * The following variables are available in this template:
 * - $this: the CrudCode object
 */
?>
<?php echo "<?php\n"; ?>
/* @var $this <?php echo $this->getControllerClass(); ?> */
/* @var $model <?php echo $this->getModelClass(); ?> */

<?php
$nameColumn=$this->guessNameColumn($this->tableSchema->columns);
$label=$this->pluralize($this->class2name($this->modelClass));
echo "\$this->breadcrumbs=array(
	'$label'=>array('admin'),
	\$model->{$nameColumn},
);\n";
?>

?>
<div class="row-fluid">
	<div class="span12">
		<div class="box gradient">
          <div class="title">
            <h3> <?php echo "<?php echo Yii::t('".$this->modelClass."','View ".$this->modelClass."');?> #<?php echo \$model->{$this->tableSchema->primaryKey}; ?>"; ?></h3>
          </div>
			<div class="content">
<?php echo "<?php"; ?> $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'htmlOptions'=>array('class'=>'table detail-table table-bordered'),
	'itemCssClass'=>array('odd','even'),
	'attributes'=>array(
<?php
foreach($this->tableSchema->columns as $column)
	echo "\t\t'".$column->name."',\n";
?>
	),
)); ?>
			</div>
		</div>
	</div>
</div>


